/**
 * Created by Peter on 2016/4/27.
 */
define(['jquery'], function ($) {
    return {
        isBlank: function (data, undefined) {
            return typeof data == 'undefined' || data == null || data == "";
        },
        isNotBlank: function (data) {
            return data != null && data != "";
        },
        getExportParams: function (obj) {
            var returnStr = "";
            for (var str in obj) {
                if (obj[str] != "" && obj[str] != null && obj[str] != "undefined" && obj[str] !="[]") {
                    returnStr += str + "=" + obj[str] + "&";
                }
            }
            return returnStr.substr(0, returnStr.length-1);
        }
    }
});